﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ASP_klient
{
    public partial class Person : System.Web.UI.Page
    {
        WilkeServiceRef.WilkeServiceClient wilkeService;
        

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["wilkeService"] == null)
                Session["wilkeService"] = new WilkeServiceRef.WilkeServiceClient();
            wilkeService = Session["wilkeService"] as WilkeServiceRef.WilkeServiceClient;
        }


        protected void btnGem_Click(object sender, EventArgs e)
        {
            wilkeService.OpretBruger(txtNavn.Text, txtAdr.Text, Convert.ToInt16(txtPostNr.Text), txtBy.Text,
                Convert.ToInt64(txtKontoNr.Text), Convert.ToInt16(txtRegNr.Text), txtMailAdr.Text, chkAdministrator.Checked,
                Convert.ToInt16(txtTlf.Text), txtPassword.Text);
        }
    }
}